import {useSearchParams} from 'umi'
const NewsDetail=()=>{
    const [params]=useSearchParams()
    let id=params.get('id')
    return(
        <>
            <h2>新闻详情</h2>
            <div>{id}</div>
        </>
    )
}
export default NewsDetail